package com.my.jli.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * @ClassName Exercise
 * @Description 习题类
 * @Author MaYu
 * @Date 2022/3/30 16:59
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Entity(name = "tb_exercise")
public class Exercise {
    //id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    //题目
    private String title;
    //答案
    private String answer;
    //习题类型
    private Integer type;
    //所属章节
    private Integer chapter;
}
